package com.dabaozhan.modules.wx_app.entity;

import java.math.BigDecimal;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.dabaozhan.modules.wx_app.base.AbstractBaseEntity;

public class RiskEntity extends AbstractBaseEntity{
	private static final long serialVersionUID = 1L;
	//打包站用户id
	@NotEmpty(message="userId不能为空")
	private String userId;
	//品类ID
	@NotEmpty(message="categoryId不能为空")
	private String categoryId;
	//品类父ID
	@NotEmpty(message="parentId不能为空")
	private String parentId;
	//品类名称
	@NotEmpty(message="categoryName不能为空")
	private String categoryName;
	//预警值
	@NotNull(message="warning不能为空")
	private BigDecimal warning;
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public BigDecimal getWarning() {
		return warning;
	}
	public void setWarning(BigDecimal warning) {
		this.warning = warning;
	}
	
}
